import styled from 'styled-components';

export const HomeWrapper = styled.div`
	overflow: hidden;
	width: 960px;
	margin: 0 auto;
`;

export const HomeLeft = styled.div`
	float: left;
	margin-left: 15px;
	padding-top: 30px;
	width: 625px;
	.banner-img {
		width: 625px;
		height: 270px;
	}
`;

export const HomeRight = styled.div`
	width: 280px;
	float: right;
`;


export const TopicWrapper = styled.div`
	overflow: hidden;
	padding: 20px 0 10px 0;
	margin-left: -18px;
	border-bottom: 1px solid #dcdcdc;
`;

export const TopicItem = styled.div`
	float: left;
	height: 32px;
	line-height: 32px;
	margin-left: 18px;
	margin-bottom: 18px;
	padding-right: 10px;
	background: #f7f7f7;
	font-size: 14px;
	color: #000;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	.topic-pic {
		display: block;
		float: left;
		width: 32px;
		height: 32px;
		margin-right: 10px;
	}
`;

export const ListItem = styled.div`
	overflow: hidden;
	position: relative;
	width: 100%;
	margin: 0 0 15px;
	padding: 15px 2px 20px 0;
	border-bottom: 1px solid #f0f0f0;
	min-height: 112px;
	.wrap-img {
		width: 150px;
		margin-top: -58px;
    bottom: 40px;
    width: 125px;
		height: 100px;
		position: absolute;
    top: 50%;
		right: 0;
		.pic {
			width: 100%;
			height: 100%;
			border-radius: 4px;
			border: 1px solid #f0f0f0;
			vertical-align: middle;
	
		}
	}
	
`
export const ListInfo = styled.div`
	padding-right: 165px;
	box-sizing: border-box;
	.title {
		margin: -7px 0 4px;
    display: inherit;
    font-size: 18px;
    font-weight: 700;
		line-height: 1.5;
		color: #333;
	}
	.desc {
		margin: 0 0 8px;
    font-size: 13px;
    line-height: 24px;
		color: #999;
	}
`

export const RecommendWrapper = styled.div`
	min-height: 184px;
	margin-top: -4px;
	padding: 30px 0 4px;
`

export const RecommendItem = styled.a`
	cursor: pointer;
	.pic {
		width: 100%;
    min-height: 50px;
    margin-bottom: 6px;
    border-radius: 4px;
	}
`
export const DownloadWrapper = styled.div`
	margin-bottom: 30px;
	padding: 10px 22px;
	width: 100%;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
	position: relative;
	.qrcode {
		width: 50px;
    height: 50px;
		opacity: .85;
		vertical-align: middle;
	}
`

export const DownloadInfo = styled.div`
	display: inline-block;
	vertical-align: middle;
	margin-left: 2px;
	.title {
		font-size: 15px;
    color: #333;
	}
	.desc {
		margin-top: 4px;
    font-size: 13px;
    color: #999;
	}
`

export const DownloadCode = styled.div`
	position: absolute;
	bottom: 82px;
	left: 50%;
	width: 180px;
	height: 180px;
	padding: 10px;
	margin-left: -122px;
	background: #fff;
	border: 1px solid #333;
	border-radius: 10px;
	transition: all .2s;
	opacity: 1;
	.code {
		width: 180px;
		height: 180px;
		text-align: center;
		vertical-align: middle;
		position: relative;
	}
	.triangle {
		display:block;
    width:0;
    height:0;
    border-width:10px;
    border-style:solid;
    border-color: #333 transparent transparent transparent;
    position:absolute;
    bottom: -20px;
		left: 50%;
		margin-left: -10px;
		&:after {
			content: '';
     	display:block;
     	width:0;
     	height:0;
     	border-width: 10px;
     	border-style:solid;
     	border-color: #fff transparent transparent transparent;
     	position: absolute;
     	bottom: -9px;
			left: 50%;
			margin-left: -10px;
		}
	}
`

export const WriterHeader = styled.div`
	margin-bottom: 20px;
	padding-top: 0;
	font-size: 13px;
	text-align: center;
	.title {
		overflow: hidden;
		text-align: left;
		span {
			font-size: 14px;
			color: #969696;
		}
	}
	.change {
		float: right;
    display: inline-block;
    font-size: 14px;
		color: #969696;
		cursor: pointer;
		.iconfont {
			font-size: 14px;
			margin-right: 2px;
		}
	}
`

export const WriterList = styled.div`
	margin: 0 0 20px;
	text-align: left;
	list-style: none;
`

export const WriterItem = styled.div`
	margin-top: 15px;
	.authorPic {
		float: left;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 50%;
	}
	.author {
		padding-top: 5px;
    margin-right: 60px;
    font-size: 14px;
		display: block;
		line-height: 22px;
	}
	.desc {
		margin-top: 2px;
    font-size: 12px;
    color: #969696;
	}
	.follow {
		float: right;
    margin-top: 5px;
    padding: 0;
    font-size: 13px;
		color: #42c02e;
		font-weight: 400;
		line-height: 1;
		.iconfont {
			color: #42c02e;
			font-size: 13px;
		}
	}
`
export const WriterInfo = styled.div`
	display: inline-block;
`

export const LoadingMore = styled.div`
	width: 100%;
	height: 40px;
	line-height: 40px;
	margin: 30px 0;
	background: #a5a5a5;
	text-align:center;
	border-radius: 20px;
	color: #fff;
	cursor: pointer;
`

export const BackTop = styled.div`
	position: fixed;
	right: 100px;
	bottom: 100px;
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	border: 1px solid #ccc;
	cursor: pointer;
	.iconfont {
		font-size: 28px;
	}
	
`